#Boa:Frame:FrameOperator

import wx

import DlgOperatorEditor

def create(parent):
    return FrameOperator(parent)

[wxID_FRAMEOPERATOR, wxID_FRAMEOPERATORBTNADD, wxID_FRAMEOPERATORBTNDEL, 
 wxID_FRAMEOPERATORBTNMODIFY, wxID_FRAMEOPERATORLCOPERATOR, 
] = [wx.NewId() for _init_ctrls in range(5)]

class FrameOperator(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAMEOPERATOR, name=u'FrameOperator',
              parent=prnt, pos=wx.Point(367, 228), size=wx.Size(569, 404),
              style=wx.DEFAULT_FRAME_STYLE,
              title=u'\u64cd\u4f5c\u5458\u8bbe\u7f6e')
        self.SetClientSize(wx.Size(561, 370))

        self.btnAdd = wx.Button(id=wxID_FRAMEOPERATORBTNADD,
              label=u'\u65b0\u589e', name=u'btnAdd', parent=self,
              pos=wx.Point(48, 56), size=wx.Size(75, 24), style=0)
        self.btnAdd.Bind(wx.EVT_BUTTON, self.OnBtnAddButton,
              id=wxID_FRAMEOPERATORBTNADD)

        self.btnModify = wx.Button(id=wxID_FRAMEOPERATORBTNMODIFY,
              label=u'\u4fee\u6539', name=u'btnModify', parent=self,
              pos=wx.Point(152, 56), size=wx.Size(75, 24), style=0)
        self.btnModify.Bind(wx.EVT_BUTTON, self.OnBtnModifyButton,
              id=wxID_FRAMEOPERATORBTNMODIFY)

        self.btnDel = wx.Button(id=wxID_FRAMEOPERATORBTNDEL,
              label=u'\u5220\u9664', name=u'btnDel', parent=self,
              pos=wx.Point(256, 56), size=wx.Size(75, 24), style=0)
        self.btnDel.Bind(wx.EVT_BUTTON, self.OnBtnDelButton,
              id=wxID_FRAMEOPERATORBTNDEL)

        self.lcOperator = wx.ListCtrl(id=wxID_FRAMEOPERATORLCOPERATOR,
              name=u'lcOperator', parent=self, pos=wx.Point(48, 112),
              size=wx.Size(448, 208), style=wx.LC_ICON)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnBtnAddButton(self, event):
        dlg = DlgOperatorEditor.create(self)
        dlg.Show()

    def OnBtnModifyButton(self, event):
        event.Skip()

    def OnBtnDelButton(self, event):
        event.Skip()
